package com.manage.server.controller.admin;

import com.manage.dto.VwUserPermissionDetailsDTO;
import com.manage.result.PageResult;
import com.manage.server.service.VwUserPermissionDetailsService;
import com.manage.vo.VwUserPermissionDetailsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.manage.result.Result;

@RestController
@RequestMapping("/vwUserPermissionDetails")
public class VwUserPermissionDetailsController {

    @Autowired
    private VwUserPermissionDetailsService vwUserPermissionDetailsService;

    /**
     * 用户权限明细分页查询
     * @param vwUserPermissionDetailsDTO 查询条件
     * @return 分页结果
     */
    @PostMapping("/page")
    public PageResult<VwUserPermissionDetailsVO> findVwUserPermissionDetails(
            @RequestBody VwUserPermissionDetailsDTO vwUserPermissionDetailsDTO) {
        return vwUserPermissionDetailsService.findVwUserPermissionDetailsByPage(vwUserPermissionDetailsDTO);
    }
}